
.custom-sidebar {
  width: 70px;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  transition: width 0.3s;
  z-index: 1040;
}


.sidebar-toggle-btn {
  font-size: 1.7rem;
  color: #333;
}


.sidebar-logo {
  width: 40px;
  height: 40px;
  display: none;
}

.break-word-link {
  white-space: normal;
  word-break: break-word;
}


.main-content-custom {
  margin-left: 80px;
  transition: margin-left 0.3s;
}


.topbar-bg-transparent {
  background: transparent;
}


.topbar-icons-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-icons-container .icon-circle {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
}

.icon-alert {
  box-shadow: 0 2px 8px rgba(231,76,60,0.15);
}

.icon-chat {
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.icon-bell {
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: relative;
}

.icon-chat-color {
  color: #222 !important;
}

.icon-bell-color {
  color: #222 !important;
}

.icon-bell-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 14px;
  height: 14px;
  background: #e74c3c;
  border-radius: 50%;
  border: 2px solid #fff;
}


.user-info-pill {
  min-width: 70px;
  max-width: 90px;
  width: 80px;
}


.user-info-avatar {
  width: 48px;
  height: 48px;
}


.user-info-btn {
  width: 40px;
  height: 40px;
  font-size: 1.3rem;
  cursor: pointer;
}

.custom-modal-dialog {
  position: absolute;
  top: 80px;
  right: 40px;
  margin: 0;
  pointer-events: none;
}
.custom-modal-content {
  border-radius: 18px;
  min-width: 340px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  pointer-events: auto;
}
.custom-modal-body {
  background: #fff;
  border-radius: 18px;
}
.user-avatar-modal {
  width: 56px;
  height: 56px;
  font-size: 2rem;
}
.username-modal {
  font-size: 1.15em;
}
.email-modal,
.user-role-modal {
  font-size: 0.98em;
}
.user-date-modal {
  font-size: 0.95em;
}
.custom-hr {
  border-top: 1px solid #eee;
}
.flex-1-span {
  flex: 1;
}

.modal-content{
    border-radius: 18px;
}

/* NFC-e config layout */
.nfce-page {
  --nfce-ink: #1a1f2b;
  --nfce-muted: #64748b;
  --nfce-accent: #0ea5e9;
  --nfce-accent-2: #22c55e;
  --nfce-card: #ffffff;
  --nfce-soft: #f1f5f9;
  --nfce-border: #e2e8f0;
}
.nfce-hero {
  background: linear-gradient(135deg, #e0f2fe 0%, #f8fafc 55%, #dcfce7 100%);
  border: 1px solid var(--nfce-border);
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nfce-hero h2 {
  color: var(--nfce-ink);
}
.nfce-hero .nfce-hero-badge {
  background: #0f172a;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.nfce-card {
  background: var(--nfce-card);
  border: 1px solid var(--nfce-border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.nfce-section-title {
  font-weight: 700;
  color: var(--nfce-ink);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.nfce-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nfce-soft);
  border: 1px dashed var(--nfce-border);
  color: var(--nfce-muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.nfce-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.nfce-col-3 { grid-column: span 3; }
.nfce-col-4 { grid-column: span 4; }
.nfce-col-6 { grid-column: span 6; }
.nfce-col-8 { grid-column: span 8; }
.nfce-col-12 { grid-column: span 12; }
.nfce-help {
  color: var(--nfce-muted);
  font-size: 0.9rem;
}
.nfce-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.nfce-save {
  background: linear-gradient(135deg, var(--nfce-accent), #38bdf8);
  border: none;
}
.nfce-save:hover {
  filter: brightness(0.98);
}
.nfce-ghost {
  background: #fff;
  border: 1px solid var(--nfce-border);
  color: var(--nfce-ink);
}
.nfce-alert {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  border-radius: 14px;
  padding: 12px 14px;
}
.nfce-alert strong {
  color: #7c2d12;
}
.nfce-kv {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.85rem;
}
.nfce-kv code {
  color: #38bdf8;
}
@media (max-width: 992px) {
  .nfce-grid { grid-template-columns: repeat(6, 1fr); }
  .nfce-col-3 { grid-column: span 3; }
  .nfce-col-4 { grid-column: span 6; }
  .nfce-col-6 { grid-column: span 6; }
  .nfce-col-8 { grid-column: span 6; }
}
@media (max-width: 640px) {
  .nfce-grid { grid-template-columns: repeat(2, 1fr); }
  .nfce-col-3,
  .nfce-col-4,
  .nfce-col-6,
  .nfce-col-8,
  .nfce-col-12 { grid-column: span 2; }
}
